<!DOCTYPE html>
<html>

<head>
    <title>{$article.post_title} - {$site_info.site_seo_title|default=''} </title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head" />
    <style>
        #article_content img {
            height: auto !important;
            max-width: 100%;
        }
        
        #article_content {
            word-wrap: break-word;
        }
    </style>
    <hook name="before_head_end" />
</head>

<body class="body-white">
    <include file="public@head_nav" menuli="{$category.list_order}" />
    <div class="m_container tc-main">
        <div class="row">
            <div class="col-md-3">
                <div class="left_box">
                    <include file="public@left_menu" />
                </div>
            </div>
            <div class="col-md-9">
                <div class="right_box">
                    <div class="list_header">
                        <ol class="breadcrumb">
                            <li class="blue_bot"><a href="#">你现在的所在位置</a></li>
                            <li>
                                <a href="__ROOT__/">首页</a>
                            </li>
                            <portal:breadcrumb cid="$category.id" self="true">
                                <li>
                                    <a href="{:url('portal/List/index',['id'=>$vo['id']])}">{$vo.name}</a>
                                </li>
                            </portal:breadcrumb>
                        </ol>
                    </div>
                    <div class="tc-box article-box">
                        <span class="atc_title">{$article.post_title}</span>
                        <div class="article-infobox">
                            <span>发布时间：{:date('Y-m-d H:i',$article.published_time)} 编辑：{$article.user.user_nickname}</span>
                        </div>
                        <hr>
                        <php>
                            $before_content_hook_param=[ 'object_id'=>$article['id'], 'table_name'=>'portal_post', 'object_title'=>$article['post_title'], 'user_id'=>$article['user_id'], 'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                            'object'=>$article ];
                        </php>
                        <hook name="before_content" param="before_content_hook_param" />

                        <div id="article_content">
                            {$article.post_content}
                        </div>
                        <if condition="!empty($article['post_source'])">
                            <div>
                                <b>注：本文转载自{$article.post_source}，转载目的在于传递更多信息，并不代表本网赞同其观点和对其真实性负责。如有侵权行为，请联系我们，我们会及时删除。</b>
                            </div>
                        </if>

                        <php>
                            $after_content_hook_param=[ 'object_id'=>$article['id'], 'table_name'=>'portal_post', 'object_title'=>$article['post_title'], 'user_id'=>$article['user_id'], 'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                            'object'=>$article ];
                        </php>
                        <hook name="after_content" param="after_content_hook_param" />

                        <php>
                            $comment_hook_param=[ 'object_id'=>$article['id'], 'table_name'=>'portal_post', 'object_title'=>$article['post_title'], 'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])), 'user_id'=>$article['user_id'], ];
                            $comment=hook_one('comment',$comment_hook_param);
                        </php>

                        <!-- <if condition="empty($comment) && cmf_get_current_admin_id()">
                            <div style="border: 1px dashed #ddd;min-height: 200px;padding-top: 50px;">
                                <div class="alert alert-warning" role="alert">
                                    此区域这为评论区，请安装评论插件！<br>
                                    <em>注：普通用户不会看到此提示！</em>
                                </div>
                            </div>
                        </if> -->
                        {$comment}
                    </div>
                </div>
            </div>
        </div>
    </div>

    <include file="public@footer" />
    <hook name="before_body_end" />
</body>

</html>